﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using POSSystem.BLL;


namespace WebUI.EditPages
{
    public partial class Uploader : BasePage
    {
        const string URL = "url";

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (!string.IsNullOrEmpty(Request.QueryString[URL]))
                {
                    cropper.LoadImage(Request.QueryString[URL]);
                }
            }
        }

        public string GetOutput()
        {
            return this.ResolveUrl(cropper.OutputURL) + "|" + this.ResolveUrl(cropper.OriginalImageURL);
        }
    }
}
